package com.roadjava.tutor.bean.dto;

import lombok.Data;

/**
 * @author zhaodaowen
 * @see <a href="http://www.roadjava.com">乐之者java</a>
 */
@Data
public abstract class BaseDTO {
    private Integer pageNow;
    private Integer pageSize;

    public Integer getStart() {
        if (getPageNow() == null) {
            return null;
        }
        return (pageNow -1) * getPageSize();
    }

}
